﻿
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RBACProject.Application
{
    /// <summary>
    /// 结果Dto
    /// </summary>
    public class ResultDto
    {
        // <summary>
        /// 执行结果
        /// </summary>
        public Result Result { get; set; }

        /// <summary>
        /// 消息
        /// </summary>
        public string Message { get; set; }

        /// <summary>
        /// Token令牌
        /// </summary>
        public string Token { get; set; }
    }
     
    /// <summary>
    /// 泛型
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public class ResultDto<T> : ResultDto
    {
        public T Data { get; set; }
    }

    /// <summary>
    /// 返回结果  枚举
    /// </summary>
    public enum Result
    {
        Success = 200, //代表成功
        Failure = 500, //代表失败
    }
}
